package cn.anl.mapper;

import cn.anl.pojo.SysMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.HashSet;

/**
 * <p>
 * 菜单权限表 Mapper 接口
 * </p>
 *
 * @author Anl
 * @since 2024-07-06
 */
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    ArrayList<SysMenu> findAll(ArrayList<String> like);

    HashSet<Long> selectMenuByAuth(ArrayList<Long> roleIds);

    ArrayList<Long> selectRoleIds(ArrayList<String> authorities);

    ArrayList<SysMenu> selectAllMenuDirectory(HashSet<Long> accessibleMenuIds);
}
